export const tableOption = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  "searchMenuSpan": 6,
  addBtn: false,
  editBtn: false,
  delBtn: false,
  viewBtn:true,
  // menu: false,
  menuWidth: 80,
  labelWidth: 120,
  "column": [
    {
      "type": "input",
      "label": "工单",
      "prop": "description",
      "span": 12,
      search: true
    },
    {
      "type": "input",
      "label": "SN",
      "prop": "id",
      "span": 12,
      search: true
    },

	  {
      "type": "input",
      "label": "测量任务",
      "prop": "type",
      "span": 12,
    },
	  {
      "type": "input",
      "label": "曲率半径",
      "prop": "curvatureradius",
      "span": 12,
      width: 90,
    },
	  {
      "type": "input",
      "label": "顶点偏移",
      "prop": "apexoffset",
      "span": 12,
      width: 90,
    },
	  {
      "type": "input",
      "label": "光纤高度",
      "prop": "fiberheight",
      "span": 12,
      width: 90,
    },
	  {
      "type": "input",
      "label": "操作员",
      "prop": "operator",
      "span": 12,
      hide: true,
    },
	  {
      "type": "input",
      "label": "APC角度",
      "prop": "angle",
      "span": 12,
      hide: true,
    },
	  {
      "type": "input",
      "label": "键位偏差",
      "prop": "keyerror",
      "span": 12,
      hide: true,
    },
	  {
      "type": "input",
      "label": "光纤粗糙度Ra",
      "prop": "fiberroughnessra",
      "span": 12,
      hide: true,
    },
	  {
      "type": "input",
      "label": "光纤粗糙度Rq",
      "prop": "fiberroughnessrq",
      "span": 12,
      hide: true,
    },
	  {
      "type": "input",
      "label": "插芯粗糙度Ra",
      "prop": "ferruleroughnessra",
      "span": 12,
      hide: true,
    },
	  {
      "type": "input",
      "label": "插芯粗糙度Rq",
      "prop": "ferruleroughnessrq",
      "span": 12,
      hide: true,
    },
	  {
      "type": "input",
      "label": "设备编号",
      "prop": "deviceSn",
      "span": 12,
      search: true,
      width: 150,
    },
    {
      "type": "input",
      "label": "Status",
      "prop": "result",
      "span": 12,
      search: true,
      width: 90,
      html:true,
      formatter:(val) => {
        if(val.result==='Pass'){
          return '<b style="color:green">'+val.result+'<b/>'
        }else {
          return '<b style="color:red">'+val.result+'<b/>'
        }
      }
    },
    {
      label: '时间',
      prop: 'sysTime',
      type: 'datetime',
      format: 'yyyy-MM-dd HH:mm:ss',
      valueFormat: 'yyyy-MM-dd HH:mm:ss',
      search: true,
      searchType:"datetimerange",
      startPlaceholder: '日期开始范围自定义',
      endPlaceholder: '日期结束范围自定义',
    },
	 /* {
      "type": "input",
      "label": "目录名",
      "prop": "pathName",
      "span": 12
    },
	  {
      "type": "input",
      "label": "文件名",
      "prop": "fileName",
      "span": 12
    },*/
  ]
}


export const realtimetableOption = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  "searchMenuSpan": 6,
  addBtn: false,
  editBtn: false,
  delBtn: false,
  viewBtn:true,
  // menu: false,
  menuWidth: 80,
  labelWidth: 120,
  "column": [
    {
      label: '系统时间',
      prop: 'sysTime',
      type: 'datetime',
      format: 'yyyy-MM-dd HH:mm:ss',
      valueFormat: 'yyyy-MM-dd HH:mm:ss',
      // search: true,
      searchType:"datetimerange",
      startPlaceholder: '日期开始范围自定义',
      endPlaceholder: '日期结束范围自定义',
    },
	  {
      "type": "input",
      "label": "工单",
      "prop": "description",
      "span": 12,
      search: true
    },

    {
      "type": "input",
      "label": "ID",
      "prop": "id",
      "span": 12,
    },
	  {
      "type": "input",
      "label": "测量任务",
      "prop": "type",
      "span": 12,
      // search: true
    },
	  {
      "type": "input",
      "label": "Status",
      "prop": "result",
      "span": 12,
      search: true,
      width: 90,
      html:true,
      formatter:(val) => {
        if(val.result==='Pass'){
          return '<b style="color:green">'+val.result+'<b/>'
        }else {
          return '<b style="color:red">'+val.result+'<b/>'
        }
      }
    },
	  {
      "type": "input",
      "label": "曲率半径",
      "prop": "curvatureradius",
      "span": 12,
      width: 90,
    },
	  {
      "type": "input",
      "label": "顶点偏移",
      "prop": "apexoffset",
      "span": 12,
      width: 90,
    },
	  {
      "type": "input",
      "label": "光纤高度",
      "prop": "fiberheight",
      "span": 12,
      width: 90,
    },
	  {
      "type": "input",
      "label": "操作员",
      "prop": "operator",
      "span": 12,
      hide: true,
    },
	  {
      "type": "input",
      "label": "APC角度",
      "prop": "angle",
      "span": 12,
      hide: true,
    },
	  {
      "type": "input",
      "label": "键位偏差",
      "prop": "keyerror",
      "span": 12,
      hide: true,
    },
	  {
      "type": "input",
      "label": "光纤粗糙度Ra",
      "prop": "fiberroughnessra",
      "span": 12,
      hide: true,
    },
	  {
      "type": "input",
      "label": "光纤粗糙度Rq",
      "prop": "fiberroughnessrq",
      "span": 12,
      hide: true,
    },
	  {
      "type": "input",
      "label": "插芯粗糙度Ra",
      "prop": "ferruleroughnessra",
      "span": 12,
      hide: true,
    },
	  {
      "type": "input",
      "label": "插芯粗糙度Rq",
      "prop": "ferruleroughnessrq",
      "span": 12,
      hide: true,
    },
	  {
      "type": "input",
      "label": "设备编号",
      "prop": "deviceSn",
      "span": 12,
      search: true,
      width: 150,
    },
	 /* {
      "type": "input",
      "label": "目录名",
      "prop": "pathName",
      "span": 12
    },
	  {
      "type": "input",
      "label": "文件名",
      "prop": "fileName",
      "span": 12
    },*/
  ]
}
